package com.zheng.shop.rpc.api;

import com.zheng.common.base.BaseServiceMock;
import com.zheng.shop.common.exception.ShopException;
import com.zheng.shop.dao.mapper.ShopCategoryMapper;
import com.zheng.shop.dao.model.ShopCategory;

import java.util.List;

/**
* 降级实现ShopProductCategoryService接口
* Created by shuzheng on 2017/11/7.
*/
public class ShopCategoryServiceMock extends BaseServiceMock<ShopCategoryMapper, ShopCategory> implements ShopCategoryService {
    @Override
    public boolean deleteProductCategory(int id) {
        return false;
    }

    @Override
    public Integer selectMaxSort() {
        return 0;
    }

    @Override
    public boolean deleteBatchCategory(List<Integer> ids) {
        return false;
    }

    @Override
    public boolean createProductCategory(ShopCategory productCategory, boolean copyAttribute, boolean copyParam) throws ShopException {
        return false;
    }

    @Override
    public boolean updateProductCategory(ShopCategory productCategory) throws ShopException {
        throw new ShopException("修改失败！");
    }
}
